\hypertarget{classdb_user}{
\section{db\-User \-Class \-Reference}
\label{classdb_user}\index{db\-User@{db\-User}}
}
\subsection*{\-Public \-Member \-Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{classdb_user_a48a9c3492291c38e6113e40e04deb2ed}{get\-All\-Users} ()
\item 
\hyperlink{classdb_user_ab989f4032e1c02f23d31b176a8b94b3b}{update\-User} (\$u)
\item 
\hyperlink{classdb_user_ab1daa973e2fd9382e927abfed005ceec}{get\-User\-I\-D} (\$u)
\item 
\hyperlink{classdb_user_a8159dc3f41ea0543fe92a59134a6252e}{get\-Username} (\$u)
\item 
\hyperlink{classdb_user_a904f14645853e94e078f5f9652bbd5a4}{get\-Password} (\$u)
\item 
\hyperlink{classdb_user_adc85ca8db9aaf9580462cb6bd4a4839a}{get\-Fname} (\$u)
\item 
\hyperlink{classdb_user_aacfaf78bd00f5a75c0b1ed4e1ed60729}{get\-Lname} (\$u)
\item 
\hyperlink{classdb_user_adbfa127af600bc91ed5310fb3b321ea2}{get\-Permission\-Level} (\$u)
\item 
\hyperlink{classdb_user_a1be72f507abfce98d3901d97d36985f5}{check\-I\-D} (\$u)
\item 
\hyperlink{classdb_user_aa6b5942ed208bcaaec016511cfc5fb1a}{get\-User} (\$username)
\item 
\hyperlink{classdb_user_acc9588f8568c95f416325428bce85218}{delete\-User} (\$u)
\end{DoxyCompactItemize}
\subsection*{\-Static \-Public \-Member \-Functions}
\begin{DoxyCompactItemize}
\item 
static \hyperlink{classdb_user_aea6c4d653e217f31256ded5783ed58f4}{create\-Table} ()
\item 
static \hyperlink{classdb_user_a96e74a2261c118f3fe27bb38c91a41c8}{add\-User} (\$u, \&\$id)
\item 
static \hyperlink{classdb_user_aaaca33ac319178544c7cc9df0d9f1578}{get\-All\-By\-I\-D} (\$id, \&\$output)
\end{DoxyCompactItemize}


\subsection{\-Detailed \-Description}
\-Communicates with the \hyperlink{class_student}{\-Student} control file to know which student data to get and set. \-It is the only file that has the \-S\-Q\-L queries and \-My\-S\-Q\-L connections

\begin{DoxyCopyright}{\-Copyright}
2011 by \-Dan, \-Steven, \-Brice, \-Mike, and \-Aaron. \-This program is part of \hyperlink{class_internship}{\-Internship} 2 \-Career, which is free software. \-It comes with absolutely no warranty. \-You can redistribute or modify it under the terms of the \-G\-N\-U \-General \-Public \-License as published by the \-Free \-Software \-Foundation (\-For more information, see $<$\href{http://www.gnu.org/licenses/}{\tt http\-://www.\-gnu.\-org/licenses/}).
\end{DoxyCopyright}
\begin{DoxyVersion}{\-Version}
\-February 10, 2011
\end{DoxyVersion}
\begin{DoxyAuthor}{\-Author}
\-Aaron \-Jarzombek and \-Brice \-Rader 
\end{DoxyAuthor}


\-Definition at line 26 of file db\-User.\-php.



\subsection{\-Member \-Function \-Documentation}
\hypertarget{classdb_user_a96e74a2261c118f3fe27bb38c91a41c8}{
\index{db\-User@{db\-User}!add\-User@{add\-User}}
\index{add\-User@{add\-User}!dbUser@{db\-User}}
\subsubsection[{add\-User}]{\setlength{\rightskip}{0pt plus 5cm}static add\-User (
\begin{DoxyParamCaption}
\item[{\$}]{u, }
\item[{\&\$}]{id}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}static\mbox{]}}}}
\label{classdb_user_a96e74a2261c118f3fe27bb38c91a41c8}
\-Adds a contact to the database. 
\begin{DoxyParams}[1]{\-Parameters}
object & {\em \$user} & \-Class \hyperlink{class_user}{\-User} \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{\-Returns}
bool \-Returns \-T\-R\-U\-E if query completes successfully. 
\end{DoxyReturn}


\-Definition at line 115 of file db\-User.\-php.

\hypertarget{classdb_user_a1be72f507abfce98d3901d97d36985f5}{
\index{db\-User@{db\-User}!check\-I\-D@{check\-I\-D}}
\index{check\-I\-D@{check\-I\-D}!dbUser@{db\-User}}
\subsubsection[{check\-I\-D}]{\setlength{\rightskip}{0pt plus 5cm}check\-I\-D (
\begin{DoxyParamCaption}
\item[{\$}]{u}
\end{DoxyParamCaption}
)}}
\label{classdb_user_a1be72f507abfce98d3901d97d36985f5}
\-Checks to see if the \-I\-D exists. 
\begin{DoxyParams}[1]{\-Parameters}
object & {\em \$user} & \-Class \hyperlink{class_user}{\-User} \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{\-Returns}
int \-Returns \-F\-A\-L\-S\-E if the \-I\-D cannot be found, and \-T\-R\-U\-E if the \-I\-D is found 
\end{DoxyReturn}


\-Definition at line 258 of file db\-User.\-php.

\hypertarget{classdb_user_aea6c4d653e217f31256ded5783ed58f4}{
\index{db\-User@{db\-User}!create\-Table@{create\-Table}}
\index{create\-Table@{create\-Table}!dbUser@{db\-User}}
\subsubsection[{create\-Table}]{\setlength{\rightskip}{0pt plus 5cm}static create\-Table (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}static\mbox{]}}}}
\label{classdb_user_aea6c4d653e217f31256ded5783ed58f4}


\-Definition at line 29 of file db\-User.\-php.

\hypertarget{classdb_user_acc9588f8568c95f416325428bce85218}{
\index{db\-User@{db\-User}!delete\-User@{delete\-User}}
\index{delete\-User@{delete\-User}!dbUser@{db\-User}}
\subsubsection[{delete\-User}]{\setlength{\rightskip}{0pt plus 5cm}delete\-User (
\begin{DoxyParamCaption}
\item[{\$}]{u}
\end{DoxyParamCaption}
)}}
\label{classdb_user_acc9588f8568c95f416325428bce85218}
\-Deletes a user from the database. 
\begin{DoxyParams}[1]{\-Parameters}
object & {\em \$user} & \-Class \hyperlink{class_user}{\-User} \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{\-Returns}
bool \-Returns \-T\-R\-U\-E if user can be deleted. 
\end{DoxyReturn}


\-Definition at line 300 of file db\-User.\-php.

\hypertarget{classdb_user_aaaca33ac319178544c7cc9df0d9f1578}{
\index{db\-User@{db\-User}!get\-All\-By\-I\-D@{get\-All\-By\-I\-D}}
\index{get\-All\-By\-I\-D@{get\-All\-By\-I\-D}!dbUser@{db\-User}}
\subsubsection[{get\-All\-By\-I\-D}]{\setlength{\rightskip}{0pt plus 5cm}static get\-All\-By\-I\-D (
\begin{DoxyParamCaption}
\item[{\$}]{id, }
\item[{\&\$}]{output}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}static\mbox{]}}}}
\label{classdb_user_aaaca33ac319178544c7cc9df0d9f1578}


\-Definition at line 322 of file db\-User.\-php.

\hypertarget{classdb_user_a48a9c3492291c38e6113e40e04deb2ed}{
\index{db\-User@{db\-User}!get\-All\-Users@{get\-All\-Users}}
\index{get\-All\-Users@{get\-All\-Users}!dbUser@{db\-User}}
\subsubsection[{get\-All\-Users}]{\setlength{\rightskip}{0pt plus 5cm}get\-All\-Users (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{classdb_user_a48a9c3492291c38e6113e40e04deb2ed}
\-Gets all the users from the database. \begin{DoxyReturn}{\-Returns}
object \-Returns \-My\-Sql data object 
\end{DoxyReturn}


\-Definition at line 58 of file db\-User.\-php.

\hypertarget{classdb_user_adc85ca8db9aaf9580462cb6bd4a4839a}{
\index{db\-User@{db\-User}!get\-Fname@{get\-Fname}}
\index{get\-Fname@{get\-Fname}!dbUser@{db\-User}}
\subsubsection[{get\-Fname}]{\setlength{\rightskip}{0pt plus 5cm}get\-Fname (
\begin{DoxyParamCaption}
\item[{\$}]{u}
\end{DoxyParamCaption}
)}}
\label{classdb_user_adc85ca8db9aaf9580462cb6bd4a4839a}
\-Gets first name from sysuser 
\begin{DoxyParams}[1]{\-Parameters}
get\-Fname & {\em \$u} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{\-Returns}
object returns first name 
\end{DoxyReturn}


\-Definition at line 200 of file db\-User.\-php.

\hypertarget{classdb_user_aacfaf78bd00f5a75c0b1ed4e1ed60729}{
\index{db\-User@{db\-User}!get\-Lname@{get\-Lname}}
\index{get\-Lname@{get\-Lname}!dbUser@{db\-User}}
\subsubsection[{get\-Lname}]{\setlength{\rightskip}{0pt plus 5cm}get\-Lname (
\begin{DoxyParamCaption}
\item[{\$}]{u}
\end{DoxyParamCaption}
)}}
\label{classdb_user_aacfaf78bd00f5a75c0b1ed4e1ed60729}
\-Gets last name from sysuser 
\begin{DoxyParams}[1]{\-Parameters}
get\-Lname & {\em \$u} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{\-Returns}
object returns last name 
\end{DoxyReturn}


\-Definition at line 219 of file db\-User.\-php.

\hypertarget{classdb_user_a904f14645853e94e078f5f9652bbd5a4}{
\index{db\-User@{db\-User}!get\-Password@{get\-Password}}
\index{get\-Password@{get\-Password}!dbUser@{db\-User}}
\subsubsection[{get\-Password}]{\setlength{\rightskip}{0pt plus 5cm}get\-Password (
\begin{DoxyParamCaption}
\item[{\$}]{u}
\end{DoxyParamCaption}
)}}
\label{classdb_user_a904f14645853e94e078f5f9652bbd5a4}
\-Gets password from sysuser 
\begin{DoxyParams}[1]{\-Parameters}
get\-Password & {\em \$u} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{\-Returns}
object returns password 
\end{DoxyReturn}


\-Definition at line 181 of file db\-User.\-php.

\hypertarget{classdb_user_adbfa127af600bc91ed5310fb3b321ea2}{
\index{db\-User@{db\-User}!get\-Permission\-Level@{get\-Permission\-Level}}
\index{get\-Permission\-Level@{get\-Permission\-Level}!dbUser@{db\-User}}
\subsubsection[{get\-Permission\-Level}]{\setlength{\rightskip}{0pt plus 5cm}get\-Permission\-Level (
\begin{DoxyParamCaption}
\item[{\$}]{u}
\end{DoxyParamCaption}
)}}
\label{classdb_user_adbfa127af600bc91ed5310fb3b321ea2}
\-Gets permission level from sysuser 
\begin{DoxyParams}[1]{\-Parameters}
get\-Permission\-Level & {\em \$u} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{\-Returns}
object returns permission level 
\end{DoxyReturn}


\-Definition at line 238 of file db\-User.\-php.

\hypertarget{classdb_user_aa6b5942ed208bcaaec016511cfc5fb1a}{
\index{db\-User@{db\-User}!get\-User@{get\-User}}
\index{get\-User@{get\-User}!dbUser@{db\-User}}
\subsubsection[{get\-User}]{\setlength{\rightskip}{0pt plus 5cm}get\-User (
\begin{DoxyParamCaption}
\item[{\$}]{username}
\end{DoxyParamCaption}
)}}
\label{classdb_user_aa6b5942ed208bcaaec016511cfc5fb1a}
\-Gets all the user information for a user with a certain \-I\-D. 
\begin{DoxyParams}[1]{\-Parameters}
int & {\em \$username} & \-I\-D of user you want to get. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{\-Returns}
object \-Returns \-F\-A\-L\-S\-E if \-I\-D does not exist, or a \-U\-Ser object if it does. 
\end{DoxyReturn}


\-Definition at line 278 of file db\-User.\-php.

\hypertarget{classdb_user_ab1daa973e2fd9382e927abfed005ceec}{
\index{db\-User@{db\-User}!get\-User\-I\-D@{get\-User\-I\-D}}
\index{get\-User\-I\-D@{get\-User\-I\-D}!dbUser@{db\-User}}
\subsubsection[{get\-User\-I\-D}]{\setlength{\rightskip}{0pt plus 5cm}get\-User\-I\-D (
\begin{DoxyParamCaption}
\item[{\$}]{u}
\end{DoxyParamCaption}
)}}
\label{classdb_user_ab1daa973e2fd9382e927abfed005ceec}

\begin{DoxyParams}[1]{\-Parameters}
get\-User\-I\-D & {\em \$u} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{\-Returns}
returns user \-I\-D 
\end{DoxyReturn}


\-Definition at line 150 of file db\-User.\-php.

\hypertarget{classdb_user_a8159dc3f41ea0543fe92a59134a6252e}{
\index{db\-User@{db\-User}!get\-Username@{get\-Username}}
\index{get\-Username@{get\-Username}!dbUser@{db\-User}}
\subsubsection[{get\-Username}]{\setlength{\rightskip}{0pt plus 5cm}get\-Username (
\begin{DoxyParamCaption}
\item[{\$}]{u}
\end{DoxyParamCaption}
)}}
\label{classdb_user_a8159dc3f41ea0543fe92a59134a6252e}
\-Gets user name from sysuser 
\begin{DoxyParams}[1]{\-Parameters}
get\-Username & {\em \$u} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{\-Returns}
object returns user name 
\end{DoxyReturn}


\-Definition at line 162 of file db\-User.\-php.

\hypertarget{classdb_user_ab989f4032e1c02f23d31b176a8b94b3b}{
\index{db\-User@{db\-User}!update\-User@{update\-User}}
\index{update\-User@{update\-User}!dbUser@{db\-User}}
\subsubsection[{update\-User}]{\setlength{\rightskip}{0pt plus 5cm}update\-User (
\begin{DoxyParamCaption}
\item[{\$}]{u}
\end{DoxyParamCaption}
)}}
\label{classdb_user_ab989f4032e1c02f23d31b176a8b94b3b}
\-Updates user information 
\begin{DoxyParams}[1]{\-Parameters}
object & {\em \$user} & \-Class user \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{\-Returns}
int \-Returns 0 if there was an error updating, else returns 1. 
\end{DoxyReturn}


\-Definition at line 76 of file db\-User.\-php.



\-The documentation for this class was generated from the following file\-:\begin{DoxyCompactItemize}
\item 
\-C\-:/\-Users/\-Jon/\-Downloads/\-O\-O\-P/db-\/control/\hyperlink{db_user_8php}{db\-User.\-php}\end{DoxyCompactItemize}
